<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:71:"C:\web\newxiangxin\public/../application/admin\view\liwu\edit_liwu.html";i:1532686600;s:60:"C:\web\newxiangxin\application\admin\view\Public\public.html";i:1532686600;}*/ ?>
﻿<!DOCTYPE html>
<html>
<head>
<title>会员列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/static/admin/mo/style/adminStyle.css" rel="stylesheet" type="text/css" />
<script src="/static/admin/mo/js/jquery.js"></script>
<script src="/static/admin/mo/js/public.js"></script>

</head>
<body>
<div class="wrap"> 
   <div class="page-title"> 
    <span class="modular fl"><i class="add"></i><em>修改礼物</em></span> 
    <span class="modular fr"><a href="/adminliwu/index" class="pt-link-btn">礼物列表</a></span> 
   </div> 
   <form action="/adminliwu/update" method="post" enctype="multipart/form-data"> 
    <table class="list-style"> 
     <tbody>
      <tr> 
       <td style="text-align:right;width:15%;">礼物名称：</td> 
       <td><input type="text" name="name" value="<?php echo $liwu['name']; ?>" class="textBox length-long" /></td> 
      </tr> 
      <tr> 
       <td style="text-align:right;">价格：</td> 
       <td> <input type="text" name="price" value="<?php echo $liwu['price']; ?>" class="textBox length-short" /> <span>元</span> </td> 
      </tr> 
      <tr> 
       <td style="text-align:right;">礼物图片：</td> 
       <td> <input type="file" id="suoluetu" name="pic" onchange="previe(this)" class="hide" /> <label for="suoluetu" class="labelBtnAdd">+</label> <img src="/uploads/<?php echo $liwu['pic']; ?>" width="60" id="previewimg1" height="60" class="mlr5" /> </td> 
      </tr> 
      <tr>
    <tr> 
        <td style="text-align:right;width:15%;">产品折扣：</td> 
        <td><input type="text" name="discount" value="<?php echo $liwu['discount']; ?>" class="textBox length-long" /></td> 
    </tr>  
       <td style="text-align:right;"></td> 
       <input type="hidden" name="id" value="<?php echo $liwu['id']; ?>">
       <td><input type="submit" value="保存" class="tdBtn" /></td> 
      </tr> 
     </tbody>
    </table> 
   </form> 
  </div>  
 </body>
</html>
<script>
            function previe(obj){
                var img1 = document.getElementById("previewimg1");  
                img1.src = window.URL.createObjectURL(obj.files[0]);  
            } 
</script>